﻿using Furion.CMS.Application.Dto;
using Furion.CMS.Core;
using Furion.CMS.Domain;
using Furion.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Furion.CMS.Web.Core
{
    /// <summary>
    /// 本地文件上传
    /// </summary>
    [Injection(Named = nameof(StorageMode.Local))]
    public class LocalFileUpload : IFileUploadProvider, ITransient
    {
        public string CallbackHandler(ICloudCallbackModel callbackParams)
        {
            return string.Empty;
        }

        public UploadConfigre GetConfigre()
        {
            return new UploadConfigre 
            {
                Host = "/api/file-center/upload",
                ExtraData = new Dictionary<string, object>() { { "Rename", true } }
            };
        }
    }
}
